#ifndef _exception_h
#define _exception_h

#include <string>


/** \brief The exception class is thrown in fatal errors. */
class exception
{
  public:
  /** \brief Default constructor. No message will be set. */
  exception();

  /** \brief Constructor with standard string message. */
  exception(std::string pMessage);

  /* \brief Constructor with const string and additional parameters.
    * See printf() */
  //exception(const char *pFormat, ...);


  operator const char*();
  operator std::string();

  private:
  std::string mMessage;
};

#endif // #ifndef _exception_h
